<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/static/semantic.min.css">
</head>
<style>
    .pg-body{
        margin: 10px;
    }
    .page{{ page }}{
        !important;
        background: black;
    }
</style>
<body>
    <div class="ui segment">
        <table border="1" class="ui inverted table">
            <thead>
                <tr>
                    <th>序号</th>
                    <th>来源</th>
                    <th>时间</th>
                    <th>标题</th>
                </tr>
            </thead>
            <tbody>
                {% for row in db_list %}
                <tr>
                    <td>{{ forloop.counter }}</td>
                    <td style="width: 150px;">{{ row.source }}</td>
                    <td>{{ row.updated }}</td>
                    <td><a href="{{ row.url }}" target="_blank">{{ row.title }}</a></td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>

    <div class="ui center aligned segment">
        {% for num in numpages %}
            <a href="/index?page={{ num }}">
                <span class="page{{ num }} ui blue circular active label">{{ num }}</span>
            </a>
        {% endfor %}




    </div>
</body>
</html>